package com.atguigu.guli.service.edu.service;

import com.atguigu.guli.service.edu.entity.Teacher;
import com.atguigu.guli.service.edu.entity.vo.TeacherQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author Helen
 * @since 2020-04-01
 */
public interface TeacherService extends IService<Teacher> {

    IPage<Teacher> selectPage(Page<Teacher> pageParam, TeacherQueryVo teacherQueryVo);

    /**
     * 功能描述：根据关键字查询讲师名列表
     *
     * @param key 搜索的关键字
     * @return List<Map<String,Object>> 讲师名列表
     * @author cakin
     * @date 2020/11/28
     */
    List<Map<String,Object>> selectNameList(String key);

    /**
     * 功能描述：根据讲师id删除图像
     *
     * @author cakin
     * @date 2020/11/29
     * @param id 讲师id
     * @return boolean 是否删除成功
     */
    boolean removeAvatarById(String id);
}
